﻿namespace Pp.Dto
{
    public class PageInfo
    {
        public int PageNumber { get; set; }
        public int ListCount { get; set; }
        public int PageSize { get; set; }
        public int PageCount
        {
            get
            {
                var count = ListCount / PageSize;
                if (ListCount % PageSize > 0) count++;
                return count;
            }
        }
        public string UrlPrefix { get; set; }
    }
}
